import axios from '@/libs/request'
/**
 * 确诊人员
 */
// 插入
export const insert = (data) => {
  return axios.request({
    url: 'api/ac/cme2/sickpersonService/insert',
    data: data,
    type: 'post'
  })
}
// 删除
export const deleteRequest = (data) => {
  return axios.request({
    url: 'api/ac/cme2/sickpersonService/delete',
    data: data,
    type: 'post'
  })
}
// 查询单条确诊人员个人信息
export const getInformation = (data) => {
  return axios.request({
    url: 'api/as/cme2/sickperson/get',
    data: data,
    type: 'get'
  })
}
// 修改单条确诊人员个人信息
export const updateInfo = (data) => {
  return axios.request({
    url: 'api/ac/cme2/sickpersonService/update',
    data: data,
    type: 'get'
  })
}
// 分页查询
export const findPageList = ({ pageNo, pageSize }) => {
  return axios.request({
    url: 'api/ac/cme2/sickpersonService/findPageList',
    data: { pageNo, pageSize },
    type: 'get'
  })
}
// 全部
export const findList = () => {
  return axios.request({
    url: 'api/ac/cme2/sickpersonService/findList',
    data: {},
    type: 'get'
  })
}
// 提报
export const updateDeptCommitStatus = (data) => {
  return axios.request({
    url: 'api/ac/cme2/sickpersonService/updateDeptCommitStatus',
    data: data,
    type: 'post'
  })
}
// 驳回
export const updateDeptRejectStatus = (data) => {
  return axios.request({
    url: 'api/ac/cme2/sickpersonService/updateDeptRejectStatus',
    data: data,
    type: 'post'
  })
}
export const updateDeptAuditStatus = (data) => {
  return axios.request({
    url: '/api/ac/cme2/sickpersonService/updateDeptAuditStatus',
    data: data,
    type: 'post'
  })
}
export const updateLeaderAuditStatus = (data) => {
  return axios.request({
    url: '/api/ac/cme2/sickpersonService/updateLeaderAuditStatus',
    data: data,
    type: 'post'
  })
}
